﻿using AutoMapper;
using HuiLian.Model.Platform;
using HuiLian.Service.Platform.Dma.Input;
using HuiLian.Service.Platform.PipeSurvivalTime.Output;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Service.Platform.PipeSurvivalTime
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<PipeEntity, PipeSurvivalTimeGetOutput>();
            CreateMap<PipeEntity, PipeSurvivalTimeListOutput>();
            CreateMap<PipeSurvivalTimeListOutput, PipeSurvivalTimeEntity>().ForMember(
                d => d.PipeNum,
                m => m.MapFrom(s => s.管段编号)
            );
        }
    }
}
